import request from "@/utils/request";

export function getPointsConfigDefault() {
  return request({
    url: "/zero-points/api/v1/points/config/default",
    method: "get",
  });
}
export function getPointsConfig(spu: number) {
  return request({
    url: "/zero-points/api/v1/points/config/" + spu,
    method: "get",
  });
}
export function addPointsConfig(spu: number, data: object) {
  return request({
    url: "/zero-points/api/v1/points/config/add/" + spu,
    method: "post",
    data: data,
  });
}
